/* eslint-disable no-unused-vars */
import namespace from "../namespace";
import EventEmitter from "eventemitter3";
/**
 * 交互策略 基类
 */
class Policy extends EventEmitter {
  NAME = "Policy";

  constructor() {
    super();
  }

  /**
   * 画布/图形 元素
   * @param {*} element
   */
  onInstall(element) {
    throw `Inherited class [${this.NAME}] must override the abstract method onInstall`;
  }

  /**
   * 画布/图形 元素
   * @param {*} element
   */
  onUninstall(element) {
    // throw `Inherited class [${this.NAME}] must override the abstract method onUninstall`;
  }
}

namespace.policy.Policy = Policy;
